<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <title>信息卡片美观Demo</title>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link rel="stylesheet" href="https://at.alicdn.com/t/c/font_3564966_a6tt4yhnzge.css">
  <style>
    body {
      background: #f4f6fa;
      font-family: 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
      margin: 0;
      padding: 0;
    }
    .info-cards {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      margin: 40px auto;
      max-width: 1200px;
      justify-content: flex-start;
    }
    .info-card {
      background: #fff;
      border-radius: 12px;
      box-shadow: 0 2px 12px rgba(60, 124, 255, 0.08);
      display: flex;
      align-items: center;
      width: 240px;
      min-height: 90px;
      padding: 20px 24px;
      transition: box-shadow 0.2s, transform 0.2s;
      cursor: pointer;
      position: relative;
    }
    .info-card:hover {
      box-shadow: 0 8px 32px rgba(60, 124, 255, 0.18);
      transform: translateY(-6px) scale(1.04);
    }
    .icon-area {
      width: 54px;
      height: 54px;
      background: linear-gradient(135deg, #3c7cff 60%, #5fb878 100%);
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-right: 18px;
      box-shadow: 0 2px 8px rgba(60, 124, 255, 0.10);
    }
    .icon-area i {
      color: #fff;
      font-size: 30px;
    }
    .info-content {
      flex: 1;
      min-width: 0;
    }
    .info-title {
      color: #8f97b3;
      font-size: 15px;
      margin-bottom: 6px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .info-value {
      font-size: 28px;
      font-weight: bold;
      color: #333;
      line-height: 1.2;
    }
    .info-unit {
      font-size: 13px;
      color: #8f97b3;
      margin-left: 2px;
      font-weight: normal;
    }
    .info-extra {
      position: absolute;
      right: 18px;
      bottom: 12px;
      font-size: 12px;
      color: #5fb878;
    }
    @media (max-width: 900px) {
      .info-cards {
        justify-content: center;
      }
      .info-card {
        width: 95vw;
        min-width: 0;
        max-width: 340px;
      }
    }
  </style>
</head>
<body>
  <div style="max-width:1200px;margin:0 auto;padding:24px 0;">
    <h2 style="color:#3c7cff;font-weight:600;margin-bottom:24px;">基本信息卡片美观Demo</h2>
    <div class="info-cards">
      <div class="info-card">
        <div class="icon-area"><i class="iconfont icon-pig"></i></div>
        <div class="info-content">
          <div class="info-title">总存栏</div>
          <div class="info-value">3 <span class="info-unit">头</span></div>
        </div>
      </div>
      <div class="info-card">
        <div class="icon-area"><i class="iconfont icon-xialiaoqi"></i></div>
        <div class="info-content">
          <div class="info-title">今日下料</div>
          <div class="info-value">0 <span class="info-unit">吨</span></div>
          <div class="info-extra">10%</div>
        </div>
      </div>
      <div class="info-card">
        <div class="icon-area"><i class="iconfont icon-xialiaoqi"></i></div>
        <div class="info-content">
          <div class="info-title">昨日下料</div>
          <div class="info-value">0 <span class="info-unit">吨</span></div>
        </div>
      </div>
      <div class="info-card">
        <div class="icon-area"><i class="iconfont icon-shui"></i></div>
        <div class="info-content">
          <div class="info-title">今日下水</div>
          <div class="info-value">0 <span class="info-unit">吨</span></div>
          <div class="info-extra">10%</div>
        </div>
      </div>
      <div class="info-card">
        <div class="icon-area"><i class="iconfont icon-shui"></i></div>
        <div class="info-content">
          <div class="info-title">昨日下水</div>
          <div class="info-value">0 <span class="info-unit">吨</span></div>
        </div>
      </div>
      <div class="info-card">
        <div class="icon-area"><i class="iconfont icon-shebeizhuangtai"></i></div>
        <div class="info-content">
          <div class="info-title">设备总数</div>
          <div class="info-value">4 <span class="info-unit">台</span></div>
        </div>
      </div>
      <div class="info-card">
        <div class="icon-area"><i class="iconfont icon-shebeizhuangtai"></i></div>
        <div class="info-content">
          <div class="info-title">在线设备</div>
          <div class="info-value">0 <span class="info-unit">台</span></div>
        </div>
      </div>
      <div class="info-card">
        <div class="icon-area"><i class="iconfont icon-shebeizhuangtai"></i></div>
        <div class="info-content">
          <div class="info-title">离线设备</div>
          <div class="info-value" style="color:#ff5722;">4 <span class="info-unit">台</span></div>
        </div>
      </div>
      <div class="info-card">
        <div class="icon-area"><i class="iconfont icon-tingyong"></i></div>
        <div class="info-content">
          <div class="info-title">空栏</div>
          <div class="info-value">1 <span class="info-unit">个</span></div>
        </div>
      </div>
      <div class="info-card">
        <div class="icon-area"><i class="iconfont icon-notice"></i></div>
        <div class="info-content">
          <div class="info-title">告警设备</div>
          <div class="info-value" style="color:#ffb800;">3 <span class="info-unit">台</span></div>
        </div>
      </div>
      <div class="info-card">
        <div class="icon-area"><i class="iconfont icon-pig"></i></div>
        <div class="info-content">
          <div class="info-title">仔猪</div>
          <div class="info-value">24 <span class="info-unit">头</span></div>
        </div>
      </div>
      <div class="info-card">
        <div class="icon-area"><i class="iconfont icon-pig"></i></div>
        <div class="info-content">
          <div class="info-title">妊娠猪</div>
          <div class="info-value">1 <span class="info-unit">头</span></div>
        </div>
      </div>
      <div class="info-card">
        <div class="icon-area"><i class="iconfont icon-pig"></i></div>
        <div class="info-content">
          <div class="info-title">哺乳母猪</div>
          <div class="info-value">2 <span class="info-unit">头</span></div>
        </div>
      </div>
      <div class="info-card">
        <div class="icon-area"><i class="iconfont icon-pig"></i></div>
        <div class="info-content">
          <div class="info-title">保育猪</div>
          <div class="info-value">0 <span class="info-unit">头</span></div>
        </div>
      </div>
      <div class="info-card">
        <div class="icon-area"><i class="iconfont icon-pig"></i></div>
        <div class="info-content">
          <div class="info-title">育肥猪</div>
          <div class="info-value">0 <span class="info-unit">头</span></div>
        </div>
      </div>
      <div class="info-card">
        <div class="icon-area"><i class="iconfont icon-pig"></i></div>
        <div class="info-content">
          <div class="info-title">公猪</div>
          <div class="info-value">0 <span class="info-unit">头</span></div>
        </div>
      </div>
      <div class="info-card">
        <div class="icon-area"><i class="iconfont icon-fangwu"></i></div>
        <div class="info-content">
          <div class="info-title">单元</div>
          <div class="info-value">1 <span class="info-unit">间</span></div>
        </div>
      </div>
      <div class="info-card">
        <div class="icon-area"><i class="iconfont icon-yingjian"></i></div>
        <div class="info-content">
          <div class="info-title">智能网关</div>
          <div class="info-value"><span style="color:#ff5722;">0</span>/<span style="color:#5fb878;">1</span> <span class="info-unit">在线</span></div>
        </div>
      </div>
    </div>
  </div>
</body>
</html> 